928ca67163083cebbac5f52cf0886e796457259d,jcr/resource/src/test/java/org/apache/sling/jcr/resource/internal/loader/JsonReaderTest.java,JsonReaderTest,testChildWithMixin,#,231

Before Change


        child.addMixinNodeType("p1:mix");
        nodes.add(child);

        String json = "{ \"name\": \"test\", \"nodes\": " + this.toJsonArray(nodes) + "}";

        Node node = this.parse(json);
        assertNotNull("Expecting node", node);

After Change


        child.addMixinNodeType("p1:mix");
        nodes.add(child);

        String json = this.toJsonObject(nodes).toString();

        Node node = this.parse(json);
        assertNotNull("Expecting node", node);